package com.study.selection.dao;

import com.study.selection.model.Course;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CourseDao {

    List<Course> findAll();

    List<Course> findByKey(String key);

    int addCourse(Course course);

    Course getByCourseId(int courseId);

    List<Course> getByTeacherId(int teacherId);

    int updateCourse(Course course);
    // 逻辑删除
    int deleteCourse(int courseId);

}
